package org;

/**
 * @Author: xwg
 * @CreateDate: 2021/11/19
 */


public class Control {
    /**
     * 1x1=1
     * 2x1=2 2x2=4
     * 3x1=3 3x2=6 3x3=9
     * ....
     */
    //    Control =>  ctrl
    public static void main(String[] args) {
// fori  提示出for循环模板
        for (int a = 5; a <= 10; a++) {

            System.out.print("************" + a);


        }
        System.out.println("");
        for (int i = 0; i < 10; i++) {
            System.out.print("此时i ： " + i);
//            System.out.print("此时：i "+i+"\n");
        }
        System.out.println();

//        3x1=3 3x2=6 3x3=9


        System.out.print("3x1=3 ");
        System.out.print("3x2=6 ");
        System.out.print("3x3=9 ");
        System.out.println();

//        做的事情 ：n= 7 打印 7×1 ---- 7*7


        Integer n = 11;
        for (int j = 1; j <= n; j++) {

            Integer first = j;
            for (int i = 1; i <= first; i++) {
                Integer result = first * i;
                System.out.print(first + "x" + i + "=" + result+" ");
            }
            System.out.println();
        }






    }

}
